(function($, owner) {
	
	owner.URLINFO = {};
	owner.URLINFO.Merchant_Url = "http://101.127.215.106:8101/SA_Mobile_Website/"; 
	owner.URLINFO.Admin_Url = "http://sedsmobile.ameroid.com.sg/SA_Mobile_Website/";
	owner.URLINFO.Merchant_type = 1;
	owner.URLINFO.Admin_type = 2;

	owner.asyncHttp = function(url, postdata, successCallback, errorCallback) {
		console.log("type----> " + owner.URLINFO.Merchant_type);
		successCallback = successCallback || $.noop;
		errorCallback = errorCallback || $.noop;
		mui.ajax({
			type: "post",
			url: "http://sedsmobile.ameroid.com.sg/SA_Mobile_Website/" + url,
			data: postdata,
			dataType: 'string',
			timeout: 60000, //超时时间设置为60秒；
			success: function(result) {
				console.log("请求数据----> \r\n"+result);
				successCallback(result);
			},
			error: function(xhr, type, errorThrown) {
				//异常处理；
				console.log(JSON.stringify(errorThrown));
				errorCallback(JSON.stringify(type));
			}
		});
	};
	

}(mui, window.http = {}));
